package com.zhongyu.base.consumer.controller;

import com.zhongyu.base.consumer.service.AreaService;
import com.zhongyu.base.consumer.vo.AreaVo;
import com.zhongyu.comm.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class AreaController {
    @Resource
    private AreaService areaService;

    @RequestMapping("/p/area/queryCityList")
        public Result queryCityList(){
        List<AreaVo> areaVos= areaService.searchAll();
        return Result.success(areaVos);
    }
}
